/*
 * Copyright (c) 2006-2021, RT-Thread Development Team
 *
 * SPDX-License-Identifier: Apache-2.0
 *
 * Change Logs:
 * Date           Author       Notes
 * 2021-10-17     hehung       the first version
 */
#ifndef APPLICATIONS_APP_RTC_H_
#define APPLICATIONS_APP_RTC_H_
#include <time.h>

typedef struct RTC_Date
{
    int16_t m_year;
    int8_t  m_month;
    int8_t  m_day;
    int8_t  m_hour;
    int8_t  m_min;
    int8_t  m_sec;
} rtc_date;

extern void RTC_AppInit(void);
extern struct tm* RTC_GetTime(void);
extern void RTC_DateUpdate(rtc_date paraDate);

#endif /* APPLICATIONS_APP_RTC_H_ */
